package com.superbytecode.cloud.safety.ratelimit.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.LinkedList;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.safety.ratelimit.model
 * @ClassName: RateLimitRule
 * @Description: [限流规则]
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/11/13 11:04
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Data
@Accessors(chain = true)
public class RateLimitRule {
    /**
     * 限流规则
     */
    private String rule;
    /**
     * 限流数量
     */
    private Integer limit;
    /**
     * 时间窗口（单位秒）
     */
    private Long timeWindow;
    /**
     * 请求时间集合
     */
    private LinkedList applyTimeList;
}